﻿<?php 
//require_once "config.php";


require_once "config.php";
require_once 'Core/DBClass.php';
require_once 'Modules/Certificate.php';
require_once 'Class/Certificate.php';
require_once 'Class/Diagnosis.php';

require_once 'Core/dbclass.php';
$db=DBClass::getInstance();
phpinfo();
exit();
$M_Certificate=new M_Certificate();

/*
*/
$Certificate=new Certificate(array('Name'=>'大明','Password'=>'123456789','Permissions'=>255,'Status'=>1));

//$M_Certificate->insert($Certificate);

foreach ($M_Certificate->arraylist() as $i){
}
	echo json_encode($M_Certificate->arraylist());
exit();
$db=DBClass::getInstance();
die(json_encode($M_Certificate->single(null, $_GET['Name'])));
//die(var_export($M_Certificate));
$M_Certificate->changepassword('90f59d328d3d4e368ecb63bf3935d873', '123456789');//($Certificate);
/*
 die(json_encode(getdate()));
*/
?>